/* 导入主题样式 */
@import './themes/light.css';
@import './themes/dark.css';
@import './themes/sepia.css';
@import './themes/high-contrast.css';

/* 全局主题变量 */
:root {
  /* 主题切换过渡效果 */
  --theme-transition-duration: 0.3s;
  --theme-transition-timing: ease;
  
  /* 默认主题变量 */
  --theme-primary: #3b82f6;
  --theme-secondary: #64748b;
  --theme-accent: #10b981;
  --theme-success: #10b981;
  --theme-warning: #f59e0b;
  --theme-error: #ef4444;
  --theme-info: #3b82f6;
  
  /* 代码块主题变量 */
  --code-bg: #f8fafc;
  --code-border: #e2e8f0;
  --code-text: #1e293b;
  --code-keyword: #dc2626;
  --code-string: #16a34a;
  --code-comment: #64748b;
  --code-function: #2563eb;
  --code-variable: #7c3aed;
  
  /* 表格主题变量 */
  --table-header-bg: #f8fafc;
  --table-border: #e2e8f0;
  --table-hover-bg: #f1f5f9;
  
  /* 卡片主题变量 */
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: rgba(0, 0, 0, 0.1);
  
  /* 输入框主题变量 */
  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --input-focus-border: #3b82f6;
  --input-text: #2c3e50;
  --input-placeholder: #94a3b8;
  
  /* 滚动条主题变量 */
  --scrollbar-bg: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-thumb-hover: #94a3b8;
}

/* 主题切换过渡效果 - 仅对主题相关元素 */
.theme-transition {
  transition: background-color var(--theme-transition-duration) var(--theme-transition-timing),
              border-color var(--theme-transition-duration) var(--theme-transition-timing),
              color var(--theme-transition-duration) var(--theme-transition-timing),
              box-shadow var(--theme-transition-duration) var(--theme-transition-timing);
}

/* 主题切换器样式优化 */
.theme-switcher {
  z-index: 1000;
}

/* 首页英雄区域样式优化 */
.VPHero .VPImage {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.VPHero .title {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--vp-c-brand) 0%, var(--vp-c-brand-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.VPHero .tagline {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.VPHero .actions {
  gap: 1rem;
  margin-top: 2rem;
}

.VPHero .action .VPButton {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.VPHero .action .VPButton.brand {
  background: linear-gradient(135deg, var(--vp-c-brand) 0%, var(--vp-c-brand-dark) 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.VPHero .action .VPButton.brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.VPHero .action .VPButton.alt {
  border: 2px solid var(--vp-c-brand);
  color: var(--vp-c-brand);
}

.VPHero .action .VPButton.alt:hover {
  background: var(--vp-c-brand);
  color: white;
  transform: translateY(-2px);
}

/* 特性卡片样式优化 */
.VPFeatures .VPFeature {
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--vp-c-divider);
  background: var(--vp-c-bg);
}

.VPFeatures .VPFeature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--vp-c-brand);
}

.VPFeatures .VPFeature .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.VPFeatures .VPFeature .title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--vp-c-text-1);
}

.VPFeatures .VPFeature .details {
  color: var(--vp-c-text-2);
  line-height: 1.6;
}

/* 首页内容区域样式优化 */
.VPContent .content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.VPContent .content h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--vp-c-text-1);
}

.VPContent .content h3 {
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--vp-c-text-1);
}

.VPContent .content ul {
  list-style: none;
  padding: 0;
}

.VPContent .content ul li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.VPContent .content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--vp-c-brand);
  font-weight: bold;
}

/* 自定义提示框样式 */
.VPContent .content .tip {
  border-left: 4px solid var(--vp-c-brand);
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.VPContent .content .tip .title {
  font-weight: 600;
  color: var(--vp-c-brand);
  margin-bottom: 0.5rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .VPHero .title {
    font-size: 2rem;
  }
  
  .VPHero .tagline {
    font-size: 1rem;
  }
  
  .VPFeatures .VPFeature {
    margin-bottom: 1rem;
  }
  
  .VPContent .content {
    padding: 2rem 1rem;
  }
}

